package com.yubest.designpattern.create.factory.abstractfactory;

import com.yubest.designpattern.create.factory.bean.Clothes;
import com.yubest.designpattern.create.factory.bean.Money;
import com.yubest.designpattern.create.factory.bean.Product;
import com.yubest.designpattern.create.factory.bean.Rmb;

/**
 * 抽象工厂-实现2
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 11:50
 */
public class ChineseFactory extends AbstractFactory {

    @Override
    public Product buyProduct() {
        return new Clothes();
    }

    @Override
    public Money useMoney() {
        return new Rmb();
    }
}
